package com.foreknow.demo6;


import java.util.Scanner;

public class OOPArray {
    public static void main(String[] args) {
        Employee[] employees = new Employee[3];
        Scanner scan = new Scanner(System.in);
        for (int i = 0;i < 3;i++){
            Employee e = new Employee();
            int card = scan.nextInt();
            String dept = scan.next();
            String name = scan.next();
            double salary = scan.nextDouble();
            e.setCardNo(card);
            e.setDept(dept);
            e.setEmpName(name);
            e.setSalary(salary);
            employees[i] = e;
        }

        for (int i = 0;i < employees.length;i++){
            Employee e = employees[i];
            System.out.println(e.getCardNo()+" "+e.getDept()+ "" +e.getEmpName()+ "" +e.getSalary());
        }

    }
}
